<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog ms-modal-dialog" style="margin-top:50px;" >
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
      </button>
      <h4 class="modal-title">讲师查询</h4>
    </div>

    <form class="form-horizontal ms-form modal-search-form" role="form" method="GET" action="${ctx.host}/trainers/search" data-validate="true">

      <input type="hidden" name="filter" value="true">

      <div class="modal-body">


        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-4">姓名：</label>
          <div class="col-xs-7 pull-left">
            <input type="text" class="form-control" name="name" value="" data-validate="required" placeholder="姓名" tabindex="3" autocomplete="off" />
          </div>
        </div>

        <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-4">是否认证：</label>
	            <div class="col-xs-7 pull-left">
	              <select class="select2 form-control" name="certified"  >
	                <option></option>
	                <option value="0" >否</option>
	                <option value="1" >是</option>
	              </select>
	             </div>
            </div>
	        <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-4">讲师类型：</label>
	            <div class="col-xs-7 pull-left">
	            	<select class="select2 form-control" name="trainerType"  >
	                <option></option>
	                <c:forEach items="${categories}" var="trainingCategory">
	                  <option <c:if test="${trainer.trainerType eq trainingCategory }">selected</c:if>>${trainingCategory}</option>
	                </c:forEach>
	              </select>
	            	
	              <!--<select class="select2 form-control" name="trainerType"  >
	                <option></option>
	                <option>业务金讲台-业务类</option>
	                <option>领导力金讲台-领导力类</option>
	              </select>-->
	             </div>
	        </div>
	        <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-4">讲师级别：</label>
	            <div class="col-xs-7 pull-left">
	              <select class="select2 form-control" name="trainerLevel" >
	                <option></option>
	                <option>一级</option>
	                <option>二级</option>
	                <option>三级</option>
	              </select>
	             </div>
	        </div>
 

      </div>

      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn btn-shadow-success btn-shadow umu-btn">查询</button>
        <button type="button" class="btn btn-shadow-default btn-shadow umu-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>
</div>
